package modelTest.model.shipMovers;

import modelTest.model.ShipMover;

public class LinearShipMover implements ShipMover{
	
	public static final int INITIAL_SHIFT_AMOUNT = 20;
	private int shiftAmount;
	
	public LinearShipMover(int shiftAmount) {
		this.shiftAmount = shiftAmount;
	}
	
	@Override
	public int calculateNewX(int actualX, int direction) {
		return actualX + direction*shiftAmount;
	}
	
	@Override
	public int calculateNewY(int actualY, int direction) {
		return actualY + direction*shiftAmount;
	}
	
	@Override
	public int calculateNewZ(int actualZ, int direction) {
		return actualZ + direction*shiftAmount;
	}
	
	
	
}
